package cn.tedu.study.notemodel.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Note {
    private Integer id;
    private Integer subjectId;
    private String title;
    private String cover;
    private String content;
    private Integer clickCount;
    private Integer contentCount;
    private Integer upvoteCount;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private Integer userId;
}
